#pragma once
#include"HashTable.h"
namespace Tardis
{
	template<class K>
	class unordered_set
	{
		struct KeyOfSet
		{
			const K& operator()(const K& key)
			{
				return key;
			}
		};

	public:
		typedef typename hash_bucket::HashTable<K, K, KeyOfSet>::const_iterator iterator;
		typedef typename hash_bucket::HashTable<K, K, KeyOfSet>::const_iterator const_iterator;

		iterator begin()const
		{
			return _ht.begin();
		}

		iterator end()const
		{
			return _ht.end();
		}


		pair<iterator, bool> insert(const K& key)
		{
			return _ht.Insert(key);
		}

	private:
		hash_bucket::HashTable<K, K, KeyOfSet> _ht;
	};

}
